@prefix-cls: applyAssetTransfer-update;
@prefix-cls-manage: apply-manage;
@prefix-cls-intentSelectModal: intent-selectproject;
@prefix-cls-mothedchangeSelectModal: mothedchange-selectproject;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

.@{prefix-cls-manage} {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .ant-table {
    .double-row {
      td {
        background: #fff;
      }
    }

    .default-row {
      td {
        background: #fafafa;
      }
    }
  }
}

.@{prefix-cls} {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .ant-table {
    .double-row {
      td {
        background: #fff;
      }
    }

    .default-row {
      td {
        background: #fafafa;
      }
    }

    .anticon-delete {
      color: red;
    }
  }

  &-steps {
    width: 100%;
    background: #fff;
    margin-bottom: 8px;
    padding: 12px 20px;
  }

  &-selectPackAgeTopTitle {
    padding: 10px 300px 20px;

    .ant-steps {
      font-size: 20px;

      .ant-steps-item-container {
        display: flex;
        align-items: center;

        .ant-steps-item-icon {
          line-height: none;
        }
      }
    }
  }

  &-applyInfoCard {
    .ant-spin-container {
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
  }

  &-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 12px 10px;
    background: #fff;
  }

  &-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
    border-top: 1px dashed #cdcdcd;
    background: #fff;

    // button {
    //   margin: 0 8px;
    // }
  }

  &-plan-list {
    .ant-card-body {
      height: calc(100% - 49px) !important;
    }

    &-container {
      height: 100%;

      &-item {
        padding: 2px 4px;
        margin: 2px 0;
        border-radius: 2px;
        cursor: pointer;
      }

      :hover {
        background-color: #f5f5f5;
      }

      .selected {
        background-color: #bae7ff;
      }
    }

    /** tree组件前面的复选框占位去除 */
    &-TreeCpt {
      .ant-tree-list {
        .ant-tree-treenode {
          .ant-tree-switcher {
            display: none;
          }
          .ant-tree-node-content-wrapper {
            width: 100%;
          }
        }
      }
    }
  }

  &-material-list {
    padding: 3px 0;

    .ant-table {
      margin: 0 !important;
    }

    .ant-table-content {
      overflow: auto !important;
    }
  }

  &-steps-pack {
    &-header {
      display: flex;
      justify-content: end;
      align-items: center;
      padding: 0 0 8px;
      border-bottom: 1px dashed #cdcdcd;
      background: #fff;
    }

    &-operate {
      margin: 12px 0 8px;
    }

    .descriptions-container {
      // margin-bottom: 8px;

      .anticon-delete {
        color: red;
      }

      .renderFileBox {
        padding: 0 8px;

        .ant-row {
          display: flex;

          .ant-col {
            flex: 1;
          }
        }
      }
    }

    .batch-remove {
      margin-top: 12px;
    }

    .ant-collapse-content-box {
      background-color: transparent !important;
    }

    &-table {
      position: relative;
      top: -1px;

      .ant-table,
      table {
        margin: 0 !important;
        border-radius: 0 !important;

        .ant-table-thead {
          th {
            border-radius: 0 !important;
          }
        }
      }

      .ant-table-body {
        table {
          height: 100%;

          .ant-table-expanded-row-fixed {
            border: none;
          }
        }
      }
      .ant-table-container .ant-table-tbody .ant-table-row > :nth-of-type(1) {
        border-left: 1px solid #eeecec !important;
      }
    }

    .quote-table {
      top: -2px;
    }

    .custom-paging {
      width: 300px;
      margin: 0 auto;
    }
  }

  &-pack {
    width: 100%;

    &-container {
      width: 100%;
      min-height: 80px;
      border: 1px solid #f0f0f0;
      display: flex;
      flex-wrap: wrap;

      .ant-ribbon-wrapper {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
      }

      &-pack-name {
        width: 179px;
        display: flex;
        justify-content: start;
        align-items: center;
        border-right: 1px solid #f0f0f0;
        background: #fafafa;
        padding: 8px 16px;
      }

      &-inner {
        width: calc(100% - 179px);

        .ant-table,
        table {
          margin: 0 !important;
          border-radius: 0 !important;

          .ant-table-thead {
            th {
              border-radius: 0 !important;
            }
          }
          .ant-table-container .ant-table-tbody .ant-table-row > :nth-of-type(1) {
            border-left: 1px solid #eeecec !important;
          }
        }

        .ant-table-header {
          table {
            border: none;
          }
        }

        &-item {
          display: flex;

          div {
            flex: 1;
            padding: 12px;
            border-right: 1px solid #f0f0f0;
            display: inline-block;
            min-width: 120px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            border-bottom: 1px solid #f0f0f0;
          }

          div:last-child {
            border-right: none;
          }

          div:nth-last-child(2) {
            border-right: none;
          }

          &-operate {
            position: sticky;
            right: 0;
            z-index: 2;
            text-align: center;
            background-color: #fff;
            transition: background 0.3s ease;
            border-left: 1px solid #f0f0f0;
          }
        }

        &-item:first-child {
          div {
            background: #fafafa;
          }
        }

        &-item:last-child {
          div {
            border-bottom: none;
          }
        }
      }

      &-footer {
        width: 100%;
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
        padding: 8px 8px;
        display: flex;
        justify-content: space-between;
      }
    }
  }

  .ant-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /** 标的信息选择Modal - 右侧样式【头部搜索+底部table表格】*/
  &-selectPackageModal {
    height: 100%;

    .ant-col {
      height: 100%;

      .ant-form-item {
        margin-bottom: 11px;
      }

      .list-table {
        height: 100%;
        overflow: hidden;

        .ant-table-wrapper {
          overflow: hidden;

          .ant-spin-nested-loading {
            overflow: hidden;

            .ant-spin-container {
              overflow: hidden;
            }
          }
        }

        .ant-pagination {
          display: flex;

          .ant-pagination-total-text {
            flex: auto;
          }
        }

        .ant-spin-container {
          .ant-table {
            margin: 0 !important;
          }

          &-selectPackageTable {
            flex: auto;
          }

          .ant-table-content {
            height: 100%;
          }

          .ant-pagination {
            margin: 0px 0px;
          }
        }

        .ant-table-row {
          .ant-table-cell {
            height: 50px;
            /* 调整为您需要的最小高度值 */
          }
        }
      }
    }

    &-rightBox {
      .ant-spin-container {
        width: 100%;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
      }
    }
  }

  &-UpdataIntentBox {
    height: 100%;
    overflow: hidden;

    .ant-spin-container {
      display: flex;
      flex-direction: column;

      .ant-card {
        // flex: auto;
        // overflow: hidden;

        .apply-update-container {
          padding: 0;
        }

        .ant-card-body {
          display: flex;
          flex-direction: column;
        }
      }
    }
  }

  //OA页面样式
  &-infoViewOA {
    height: 100%;
    width: 100%;
    .displayDirection();
    .overflow();

    &-centerBodyTitleBox {
      text-align: center;
      font-weight: 700;
      font-size: 24px;
    }

    &-titleBox {
      display: flex;
      justify-content: space-between;
      background-color: #fff;
      border-radius: 5px;
      align-items: center;
      padding: 0px 10px;

      &-textValue {
        font-size: 22px;
        padding: 10px 0px;
      }
    }

    &-centerBox {
      flex: auto;
      background: #fff;
      margin: 6px 0px;
      border-radius: 5px;
      padding: 10px 0px;
      overflow: hidden;
    }

    &-bottomBtnBox {
      background-color: #fff;
      border-radius: 5px;

      &-spaceItemBox {
        display: flex;
        justify-content: center;
        padding: 0px 10px;
      }

      &-spaceItemBox > .ant-space > .ant-space-item {
        margin: 10px 0px;
      }
    }
  }

  // 流程办理
  &-flowListView {
    width: 100%;
    height: 100%;
    padding: 0px 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &-workflowTbodyRootDiv {
      width: 100%;
      flex: auto;
      height: 30%;
      overflow: hidden;

      .ant-empty {
        margin: 0px;
        padding: 50px 0px;
        border-left: 1px solid #d7d7d7;
        border-right: 1px solid #d7d7d7;
        border-bottom: 1px solid #d7d7d7;
      }

      table {
        border-left: 1px solid #d7d7d7;
        border-right: 1px solid #d7d7d7;
        border-bottom: 1px solid #d7d7d7;
      }

      td {
        padding: 10px;
      }

      tr:not(:first-child) {
        border-top: 1px solid #d7d7d7;
      }
    }
  }

  &-workflowNodesTableTitle {
    border-top: 1px solid #d7d7d7;
    overflow: hidden;

    &-tableTheadBox {
      text-align: left;
      border: 1px solid #d7d7d7;

      th {
        padding: 10px;
        background-color: #f7f7f7;
      }
    }
  }
}

.ProjectModalTable {
  flex: auto;
  height: 100%;
  overflow: hidden;

  .ant-table {
    margin: 0 !important;
  }

  .ant-pagination {
    margin: 0 !important;
    padding: 12px 0 !important;
  }
}

.ProjectModalSearch {
  padding: 10px 0;

  .ant-row {
    .ant-col {
      .ant-form-item {
        margin-bottom: 0;
      }
    }
  }
}

.criteria-btnStyle {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: flex-end;

  .ant-col {
    height: 100%;
  }

  .criteria-btnStyle-bottomIcon {
    min-width: 38px;
    max-width: 100px;
    height: 100%;
    color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f0f0f0;
    background-color: #fafafa;
    cursor: pointer;
  }
}

.UpdatePackTable {
  flex: auto;
  height: 100%;
  overflow: hidden;

  .ant-table {
    margin: 0 !important;

    .double-row {
      td {
        background: #fff;
      }
    }

    .default-row {
      td {
        background: #fafafa;
      }
    }
  }

  .ant-pagination {
    margin: 0 !important;
    padding: 12px 0 !important;
  }

  .ant-form-item {
    margin: 0;
  }
}

.@{prefix-cls-intentSelectModal} {
  &-formBoxDiv {
    margin: 10px 1rem;
    .ant-form {
      .ant-form-item {
        margin: 0;
      }
    }
    &-handleBtn {
      text-align: right;
    }
  }
  &-TableBoxDiv {
    flex: auto;
    height: 100%;
    overflow: hidden;
    .ant-pagination {
      padding: 8px 1rem !important;
    }
  }
}
.@{prefix-cls-mothedchangeSelectModal} {
  &-RowsBox {
    height: 100%;
    overflow: hidden;
    .ant-col {
      height: 100%;
      overflow: hidden;
    }
  }
  &-plan-list {
    .ant-card-body {
      height: calc(100% - 49px) !important;
    }

    &-container {
      height: 100%;

      &-item {
        padding: 2px 4px;
        margin: 2px 0;
        border-radius: 2px;
        cursor: pointer;
      }

      :hover {
        background-color: #f5f5f5;
      }

      .selected {
        background-color: #bae7ff;
      }
    }

    /** tree组件前面的复选框占位去除 */
    &-TreeCpt {
      .ant-tree-list {
        .ant-tree-treenode {
          .ant-tree-switcher {
            display: none;
          }
        }
      }
    }
  }
}

.apply-threeCptdisplayNone {
  display: none;
}
